home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / program / wx_lib10.zoo / wx_lib.h < prev    next >
C/C++ Source or Header  |  1992-08-02  |  3KB  |  146 lines

  1. #include <stdarg.h>
  2. #include <gemfast.h>
  3.  
  4. #ifdef __GNUC__
  5. #include <aesbind.h>
  6. #include <vdibind.h>
  7. #endif
  8.  
  9. #ifndef WX_LIB
  10.  
  11. #ifndef FALSE
  12. #define FALSE 0
  13. #define TRUE 1
  14. #endif
  15.  
  16. #ifndef NULL
  17. #define NULL 0L
  18. #endif
  19.  
  20. /*
  21.  * This is the structure that holds all our window information.  No doubt
  22.  * it will continue to grow and feed and become larger.  I keep the current
  23.  * inside and outside dimensions because I don't seem to be able to get
  24.  * wind_calc to work correctly.
  25.  */
  26. typedef struct  {
  27.                 /*
  28.                  * This is the pointer to the window's "name" string.
  29.                  */
  30.         char    *name,
  31.                 /*
  32.                  * This is the pointer to the window's "info" string.
  33.                  */
  34.                 *info;
  35.                 /*
  36.                  * The window handle for this "Window".
  37.                  */
  38.         int        hand,
  39.                 /*
  40.                  * The VDI handle for use by the wx_xxxx() calls.
  41.                  */
  42.                 vdih,
  43.                 /*
  44.                  * A flag to indicate whether the window is open.
  45.                  */
  46.                 open,
  47.                 /*
  48.                  * A flag to indicate whether the window has been created.
  49.                  */
  50.                 actv,
  51.                 /*
  52.                  * What type of gadgets does it have?
  53.                  */
  54.                 type,
  55.                 /*
  56.                  * What is the current x position of the cursor?
  57.                  */
  58.                 xpos,
  59.                 /*
  60.                  * What is the current y position of the cursor?
  61.                  */
  62.                 ypos,
  63.                 /*
  64.                  * What is the first text-writable column?
  65.                  */
  66.                 minx,
  67.                 /*
  68.                  * What is the first text-writable row?
  69.                  */
  70.                 miny,
  71.                 /*
  72.                  * What is the final text-writable column?
  73.                  */
  74.                 maxx,
  75.                 /*
  76.                  * What is the final text-writable row?
  77.                  */
  78.                 maxy,
  79.                 /*
  80.                  * What is the scroll-rate of the window?
  81.                  */
  82.                 scrl,
  83.                 /*
  84.                  * What are the current outside dimensions?
  85.                  */
  86.                 wchr,
  87.                 hchr;
  88.         GRECT    curr,
  89.                 /*
  90.                  * What are the full outside dimensions?
  91.                  */
  92.                 full,
  93.                 /*
  94.                  * What are the workspace dimensions?
  95.                  */
  96.                 work,
  97.                 /*
  98.                  * What are the previous dimensions?
  99.                  */
  100.                 prev;
  101. } Window;
  102.  
  103. #ifdef __STDC__
  104. extern    void    wx_clear(Window *);
  105. extern    void    wx_close(Window *);
  106. extern    void    wx_free(Window *);
  107. extern    void    wx_fscroll(Window *);
  108. extern    void    wx_full(Window *);
  109. extern    void    wx_get(Window *);
  110. extern    int        wx_info(Window *,char *);
  111. extern    int        wx_init(Window *,int,int,int);
  112. extern    void    wx_move(Window *,int,int);
  113. extern    int        wx_name(Window *,char *);
  114. extern    void    wx_new(Window *);
  115. extern    int        wx_open(Window *);
  116. extern    void    wx_outstr(Window *,char *);
  117. extern    void    wx_printf(Window *,char *,...);
  118. extern    int        wx_puts(Window *,char *);
  119. extern    void    wx_setclip(Window *);
  120. extern    void    wx_settype(Window *,int);
  121. extern    void    wx_size(Window *,int,int);
  122. #else
  123. extern    void    wx_clear();
  124. extern    void    wx_close();
  125. extern    void    wx_free();
  126. extern    void    wx_fscroll();
  127. extern    void    wx_full();
  128. extern    void    wx_get();
  129. extern    int        wx_info();
  130. extern    int        wx_init();
  131. extern    void    wx_move();
  132. extern    int        wx_name();
  133. extern    void    wx_new();
  134. extern    int        wx_open();
  135. extern    void    wx_outstr();
  136. extern    void    wx_printf();
  137. extern    int        wx_puts();
  138. extern    void    wx_setclip();
  139. extern    void    wx_settype();
  140. extern    void    wx_size();
  141. #endif
  142.  
  143. #define WINX_LIB
  144.  
  145. #endif
  146.